home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / NT / CODE / CHAP05 / CTLDEMO4 / CTLDEMO4.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  771 b   |  37 lines

  1. //***********************************************************************
  2. //
  3. //  CtlDemo4.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     int m_cxChar;
  17.     int m_cyChar;
  18.     CFont m_font;
  19.  
  20.     CStatic m_ctlText;
  21.     CButton m_ctlRadioButtonRed;
  22.     CButton m_ctlRadioButtonGreen;
  23.     CButton m_ctlRadioButtonBlue;
  24.     CButton m_ctlGroupBox1;
  25.     CButton m_ctlGroupBox2;
  26.  
  27. public:
  28.     CMainWindow ();
  29.  
  30. protected:
  31.     afx_msg int OnCreate (LPCREATESTRUCT);
  32.     afx_msg HBRUSH OnCtlColor (CDC*, CWnd*, UINT);
  33.     afx_msg void OnButtonClicked ();
  34.  
  35.     DECLARE_MESSAGE_MAP ()
  36. };
  37.